package com.example.demo001.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "用户信息")
public class UserDto {
    @ApiModelProperty(value = "用户名",example = "xiaokun", required = true)
    @NotBlank(message = "用户名不能为空或仅包含空格")
    private String username;
    @ApiModelProperty(value = "密码",example = "xk123456", required = true)
    @NotBlank(message = "密码不能为空或仅包含空格")
    private String password;
    @ApiModelProperty(value = "邮箱",example = "xiaokun@junyufr.com", required = true)
    @NotBlank(message = "邮箱不能为空或仅包含空格")
    private String email;
    @ApiModelProperty(value = "验证码",example = "a23456", required = true)
    @NotBlank(message = "验证码不能为空或仅包含空格")
    private String code;

}
